package com.kykj.kykj.dao;

import com.kykj.kykj.entity.RouteEntity;
import com.kykj.kykj.vo.RouteVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RouteDao {
    int addRoute(@Param("routeVo")RouteVo routeVo);//添加路由
    int updateRoute(@Param("routeVo")RouteVo routeVo);//修改路由
    int delRoute(@Param("menuid") int menuid);//删除路由

    RouteEntity getRouteByMenuId(@Param("menuid") int menuid);//根据menuid获取对象
    List<RouteEntity> getRouteList(@Param("name") String name,@Param("controller") String controller,
                                   @Param("start") int start,@Param("limit") int limit); //分页查询
    int getRouteCount();//计算总数
}
